<template>
	<view>
		<u-swiper :list="lun" :title="true" :effect3d="true"></u-swiper>
		<uni-group title="往期公告">
			<uni-list>
				<uni-list-item v-for="(item,index) in lun" :title="item.title" :thumb="item.image"></uni-list-item>
			</uni-list>
		</uni-group>
		<uni-group title="养老服务">
			<view class="item-container">
				<view class="thumb-box" v-for="(item1, index1) in list" @click="dianji(item1.link)" :key="index1">
					<image class="item-menu-image" :src="item1.image" mode=""></image>
					<view class="item-menu-name">{{item1.text}}</view>
				</view>
			</view>
		</uni-group>
		<uni-group title="楷模列表">
			<uni-list>
				<uni-list-item v-for="(item,index) in lun2" link @click="xianq" :title="item.title" :thumb="item.image"
					note="潘东升 （福建省公安厅党委原委员、福州市政府原党组成员、副市长)"></uni-list-item>
			</uni-list>
		</uni-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						text: '英雄故事',
						image: '../../../static/zhihui2/icons/LuJing410.png.png',
						link: 'jian'
					},
					{
						text: '学习心得',
						image: '../../../static/zhihui2/icons/LuJing413.png.png',
						link: 'pingtai'
					},
					{
						text: '公益活动',
						image: '../../../static/zhihui2/icons/LuJing414.png.png',
						link: 'cahxun'
					},
					{
						text: '身边的英雄',
						image: '../../../static/zhihui2/icons/LuJing453.png.png',
						link: 'shenb'
					},
				],
				lun: [{
						image: '../../../static/zhihui/lun/1260627788627b04d4dec9f.jpg',
						link: '',
						title: '大手拉小手，爱心相传递'
					},
					{
						image: '../../../static/zhihui/lun/665014142627b085436522.jpg',
						link: '',
						title: '慈善一日捐，慈善凝聚爱心'
					},
					{
						image: '../../../static/zhihui/lun/924186256627b06ff87637.jpg',
						link: '',
						title: '送温暖、献爱心'
					},
				],
				lun2: [{
						image: '../../../static/zhihui/lun/1260627788627b04d4dec9f.jpg',
						link: '',
						title: '时代楷模孙景坤'
					},
					{
						image: '../../../static/zhihui/lun/665014142627b085436522.jpg',
						link: '',
						title: '时代楷模杜富国'
					},
					{
						image: '../../../static/zhihui/lun/924186256627b06ff87637.jpg',
						link: '',
						title: '时代楷模潘东升'
					},
				],

			}
		},
		methods: {
			dianji(url){
				uni.navigateTo({
					url:url
				})
			},
			xianq() {
				uni.navigateTo({
					url: 'xianqshi'
				})
			}
		}
	}
</script>

<style>
	.item-container {
			display: flex;
			flex-wrap: wrap;
		}
	
		.thumb-box {
			width: 25%;
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			margin-top: 20rpx;
		}
	
		.item-menu-image {
			width: 80rpx;
			height: 80rpx;
		}
</style>
